package com.fulin.thread.condition;

public class TestInterupted {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            int i = 0;
           while(true){
               i++;
           }
        });

        t1.start();

        t1.interrupt();

        Thread.sleep(2000);
    }
}

